<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'da.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta http-equiv="content-type" content="text/html;charset=utf-8">

<link rel="stylesheet" href="js/easyui/demo/demo.css" type="text/css"></link>
<link rel="stylesheet" href="js/easyui/themes/icon.css" type="text/css"></link>
<link rel="stylesheet" href="js/easyui/themes/default/easyui.css"
	type="text/css"></link>
<script type="text/javascript" src="js/easyui/jquery-1.6.min.js"></script>
<script type="text/javascript" src="js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="script/common.js"></script>
<script type="text/javascript" src="js/easyui/themes/easyui-lang-zh_CN.js"></script>
<link href="css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
</style>
<script type="text/javascript">
</script>
</head>

<body>

	<div style="margin:20px 20px 0px 20px; width:85%;">
		<div style="width:100%; float: left;" id="show">
			<table class="easyui-datagrid" style="width=50%;"
			
				singleSelect="true">
				<thead>
					<tr>
						<th data-options="field:'craftId'" width="">序号</th>
						<th data-options="field:'craftCode'" width="100">工艺编码</th>
						<th data-options="field:'craftName'" width="100">工艺名称</th>
						<th data-options="field:'craftType.typeName'" width="100">工艺类型</th>
						<th data-options="field:'craftGrade.gradeName'" width="100">工艺等级</th>
						<th data-options="field:'memo'" width="100">工艺备注</th>
					</tr>
				</thead>
				<c:choose>
					<c:when test="">
						<tr style="text-align: center;">
							<td colspan="11"><span style="color: grey;"></span></td>
						</tr>
					</c:when>
					<c:otherwise>
						<c:forEach items="${cralist}" var="Craft" varStatus="i">
							<tr>

								<td>${i.index+1+offset*10 }</td>

								<td><c:out value="${Craft.craftCode}" /></td>

								<td><c:out value="${Craft.craftName}" /></td>

								<td><c:out value="${Craft.craftType.typeName}" /></td>

								<td><c:out value="${Craft.craftGrade.gradeName}" /></td>

								<td><c:out value="${Craft.memo}" /></td>
							</tr>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</table>
			<div style="margin: 10px 0px;">
			
				<a onclick="removeCurrentPanel('checkcraftslist.jsp','工艺列表')" class="easyui-linkbutton"style="margin-left: 10px;">确定</a>
			</div>
		</div>
	</div>

</body>
</html>
